package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.sql.SQLOutput;

public class OosDemo {
    public static void main(String[] args) throws IOException {
        String[] otherInfo={"帅","技术好","玩游戏好","有钱","二阶段老师"};
        Person person =  new Person("潇洒哥",15,"男",otherInfo);

        FileOutputStream fos = new FileOutputStream("person.obj");
        ObjectOutputStream oos = new ObjectOutputStream(fos);


        oos.writeObject(person);
        System.out.println("写出完毕");
        oos.close();
    }
}
